<template>

</template>
<script>
export default {
    data(){
      return {
        flag:'true',
        history:[]
      }
    },
    props: {
    items: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  methods:{
    searchHot(e){
      // console.log(e.target.innerText);
      
      this.$router.push({ path: '/search', query: { items: e.target.innerText }})
      this.flag = !this.flag;
    }
  }
};
</script>
<style lang="less" scoped>
.search_component {
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: white;
  position: absolute;
  top:100px;
//   border: 1px solid red;
  .search_full {
    width: 100%;
    height: 100px;
  }
  .search_history {
    width: 100%;
    // height: 200px;
    border-bottom: 1px solid #7a7b92;
    .history_top {
      width: 100%;
      height: 100px;
      //   background-color: red;
      text-align: left;
      display: flex;
      //   border: 1px solid blue;
      //   margin-top: 50px;
      color: #7a7b92;
      .history_one {
        width: 100px;
        height: 100%;
        // border: 1px solid red;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .history_two {
        flex-grow: 1;
        //   width:100px;
        height: 100%;
        // border: 1px solid green;
        display: flex;
        align-items: center;
      }
      .history_three {
        width: 100px;
        height: 100%;
        // border: 1px solid orange;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
    .history_bottom {
      width: 100%;
      //   height: 100px;
      padding-bottom: 50px;
      display: flex;
      align-items: center;
      justify-content: center;

      .historic_records {
        width: 80%;
        height: 100%;
        display: flex;
        .history_search {
          height: 60%;
          border: 1px solid #dedede;
          padding: 10px;
          border-radius: 10px;
          margin: 10px;
          text-align: center;
          display: flex;
          align-items: center;
          font-size: 16px;
          color: #7a7b92;
        }
      }
    }
  }

  .popular_searches {
    width: 100%;
    .popular_top {
      width: 100%;
      height: 100px;
      display: flex;
      .popular_one {
        width: 100px;
        height: 100%;
        // border: 1px solid red;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .popular_two {
        flex-grow: 1;
        //   width:100px;
        height: 100%;
        // border: 1px solid green;
        display: flex;
        align-items: center;
      }
    }
    .popular_bottom {
      // width: 100%;
      //   height: 100px;
      display: flex;
      // align-items: center;
      justify-content: center;
      .hot_word{
        width:80%;
        display: flex;
        // justify-content: space-between;
        flex-wrap: wrap;
        .word_all{
          border: 1px solid #dedede;
          border-radius: 10px;
          margin: 10px;
          padding:5px 10px;
          font-size: 16px;
        }
      }
      
    }
  }
}
</style>



